var Radio = require('./radio.js');
var radio = new Radio('"music radio"', 'FM 106.7');
radio.on('play', () => {
    console.log(radio.name + ' ' + radio.f + ' ' + 'opened' + ' ' + 'lalalala......');
})
radio.on('pause', () => {
    console.log(radio.name + ' ' + radio.f + ' ' + 'closed');
})
setTimeout(() => {
    radio.emit('play');
}, 2000)
setTimeout(() => {
    radio.emit('pause');
}, 5000)